import React from "react";
import ReactDOM from "react-dom/client";
import store from "./redux/store";
import { BrowserRouter } from "react-router-dom";
// 引入根组件
import App from "./App";

store.subscribe(() => {
  console.log("@@");
});
// 创建根容器
const root = ReactDOM.createRoot(document.getElementById("root"));
// 渲染根组件
root.render(
  <BrowserRouter>
    <App delta={2} />
  </BrowserRouter>
);
